import request from '@/utils/request'

export function getUserInfo() {
  return request.get('/user/info')
}

// 设置登录临时token
export function setLoginToken(token: string) {
  return request.post('/login/zsxq/setToken', {
    token
  })
}

// 查询登录状态
export function getLoginStatus(token: string) {
  return request.post('/login/zsxq/getStatus', {
    token
  }, {
    showLoading: false
  })
}